import { addLog, findAllLog, delLog } from '../apis/logApi'

export default ()=>{

  const all = async() =>{
    return await findAllLog()
  }
  
  const add = async(data)=>{
    await addLog(data)
  }

  const del = async(id)=>{
    await delLog(id)
  }

  return { add, all, del }
}